import React from "react";
import { useModel } from "umi";

import Home from "./home";
import MiniHome from "./miniHome";

export default () => {
  const { initialState, setInitialState } = useModel("@@initialState");
  // 5=采样员
  return initialState?.currentUser?.type === 5 ? <MiniHome /> : <Home />;
};
